import { post, get, userExcelUpdate } from '@/utils/request'

export default {
  getUserList: query => post('/api/admin/user/page/list', query),
  changeStatus: row => post('/api/admin/user/changeStatus/' + row.userId + '/' +row.status),
  editUser: query => post('/api/admin/user/editUser', query),
  getUserById: userId => get('/api/admin/user/getUserById/' + userId),
  removeUserById: userId => post('/api/admin/user/removeUserById/' + userId),
  uploadExcel: query => userExcelUpdate('/api/admin/user/uploadExcel/', query),
  removeSelection: query => post('/api/admin/user/removeSelection/', query)
}